﻿using System.Linq;
using NHibernate;
using NHibernate.Linq;
using TimeTracker.Core.Domain.Entities;

namespace TimeTracker.Core.Tests
{
    public class TimeTrackerContext : NHibernateContext
    {
        public TimeTrackerContext(ISession session) : base(session)
        {
        }

        public IOrderedQueryable<Radnik> Radnici
        {
            get { return Session.Linq<Radnik>(); }
        }

        public IOrderedQueryable<Korisnik> Korisnici
        {
            get { return Session.Linq<Korisnik>(); }
        }

        public IOrderedQueryable<OrganizacionaSema> OrganizacioneSeme
        {
            get { return Session.Linq<OrganizacionaSema>(); }
        }
    }
}
